package com.wuercloud.http.json.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * Created by JiangWL on 2017/2/14.
 */
public class InfoObject<T> implements Serializable{
    private Long id;
    /**
     * 信息标题
     */
    private String title;
    private String version;
    /**
     * 返回信息
     */
    private String returnMsg;
    /**
     * 返回结果标识
     */
    private int result;
    /**
     * 业务类型
     * 构成内容，如：1-1，1-2，2-1......
     * '-'前数字代表应用，如：1、门禁，2、教师中心...;'-'后数据代表场景值,如1、短信，2、微信，3、站内信.....
     */
    private String bizType;

    /**
     * 业务信息内容体
     */
    private List<T> infos ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public InfoObject(){
        super();
    }

    public List<T> getInfos() {
        return infos;
    }

    public void setInfos(List<T> infos) {
        this.infos = infos;
    }

    public InfoObject(Long id, String title, String version, String returnMsg, int result, String bizType, List<T> infos) {
        this.id = id;
        this.title = title;
        this.version = version;
        this.returnMsg = returnMsg;
        this.result = result;
        this.bizType = bizType;
        this.infos = infos;
    }
}
